package com.woniuxy01;

import java.util.Scanner;

public class Test08 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入一个数");
        int num = scanner.nextInt();
        boolean flag=true;
        for(int i=2;i<num;i++){
            if(num%i==0){
                flag=false;
                break;
            }
        }
        //下结论
        if(flag){
            System.out.println("是");
        }else{
            System.out.println("不是");
        }
    }
}
